import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {path: '', redirectTo: '/pipi/home', pathMatch: 'full' },  // 默认跳转到 '/home'
  {path: 'pipi',loadChildren: () => import('../modules/pipi/pipi.module').then(m => m.PipiModule)}
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
